package work;

public class Problem9 {

    public boolean isPalindrome(int x) {
        String myString = Integer.toString(x);
        for (int i = 0; i < myString.length() / 2; i++) {
            if(myString.charAt(i) !=myString.charAt(myString.length()-i-1)){
                return false;
            }
        }
        return true;
    }

    public static void main(String[] args) {
        Problem9 problem9 = new Problem9();
        Boolean ans = problem9.isPalindrome(12321);
        System.out.println(ans);
    }
}
